import request from "@/utils/request";

// 获取电子表单信息
export function sxSerFormByServiceOid(serviceOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/serForm/selectBySxSerFormByServiceOid?serviceOid=" +
      serviceOid,
    method: "get"
  });
}

//保存或者修改
export function saveOrUpdateCaseForm(data) {
  return request({
    url: process.env.VUE_APP_KSTB_ROUTE_PATH + "/caseForm/saveOrUpdate",
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    },
    data: data
  });
}

//获取办件与表单关联信息
export function caseFormByCaseOid(caseOid, sxSerFormOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/caseForm/caseFormByCaseOid?caseOid=" +
      caseOid +
      "&sxSerFormOid=" +
      sxSerFormOid,
    method: "post"
  });
}
